package city.spring.modules.medicine.repository;

import city.spring.modules.medicine.entity.MedicinedeliveryEntity;
import city.spring.modules.medicine.vo.MedicinedeliveryVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 存储库：药品出库表
 *
 * @author 谢金婷
 * @date 2020-07-08 16:16:50
 */
@Repository
public interface MedicinedeliveryRepository extends BaseMapper<MedicinedeliveryEntity> {
    MedicinedeliveryEntity getById(String id);

    IPage<MedicinedeliveryVO> listPage(Page<? extends MedicinedeliveryEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends MedicinedeliveryEntity> wrapper);
}